﻿using QG.JobBack.BLL.Service;
using QG.JobBack.DAL;
using QH.JobBack.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QG.JobBack.BLL.IService
{
    public interface IRoleService
    {

        /// <summary>
        /// 添加一个角色
        /// </summary>
        /// <param name="RoleInfo"></param>
        /// <returns></returns>
        ResponseResult<RoleInfo> AddRoleInfo(RoleMoudle roleModule);

        /// <summary>
        /// 修改一个角色
        /// </summary>
        /// <param name="RoleInfo"></param>
        /// <returns></returns>
        ResponseResult<RoleMoudle> UpdateRoleInfo(RoleFunctionView roleMoudle);


        /// <summary>
        /// 查询角色列表
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        ResponseResult<RoleUserBase> GetRoleInfoList(int page, int limit, string RoleName);

        /// <summary>
        /// 根据ID删除一个角色
        /// </summary>
        /// <param name="RoleInfo"></param>
        /// <returns></returns>
        ResponseResult<RoleInfo> DeleteRoleInfoById(int id);

        /// <summary>
        /// 查询所有角色
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ResponseResult<RoleInfo> GetRoleInfo(int id);


        /// <summary>
        /// 根据ID修改状态
        /// </summary>
        /// <param name="id"></param>
        /// <param name="status"></param>
        /// <returns></returns>
        ResponseResult<RoleInfo> UpdateStatus(int id, int status);

    }
}